import request from '@/utils/request'

// 查询月利润表列表
export function listMonthprofit(query) {
  return request({
    url: '/statistic/monthprofit/list',
    method: 'get',
    params: query
  })
}

// 查询月利润表详细
export function getMonthprofit(profitBillId) {
  return request({
    url: '/statistic/monthprofit/' + profitBillId,
    method: 'get'
  })
}

// 新增月利润表
export function addMonthprofit(data) {
  return request({
    url: '/statistic/monthprofit',
    method: 'post',
    data: data
  })
}

// 修改月利润表
export function updateMonthprofit(data) {
  return request({
    url: '/statistic/monthprofit',
    method: 'put',
    data: data
  })
}

// 删除月利润表
export function delMonthprofit(profitBillId) {
  return request({
    url: '/statistic/monthprofit/' + profitBillId,
    method: 'delete'
  })
}
